<div class="mymsg" id='row_<?= $row['thread_id']?>'>
<?$auhor_name = sms_util_comment::getUserInfoByUid($row['authorid'],'username')?>
<?$user_name = sms_util_comment::getUserInfoByUid($row['uid'],'username')?>
<div class="friend-head">
	<div class="avatar50"><i:avatar xmlns:i="178" uid="<?=$row['uid']?>" size="50"  border="false" username="<?=$user_name?>" title="<?= $user_name?>" addlink="true" link="/?uid=<?=$row['uid']?>"/></div>
		<div class="friend-name">
		<i:name xmlns:i="178" length ="9" uid="<?=$row['uid']?>" username="<?= $user_name?>"/></div>
	</div>
	<div class="msg-main msg-main-comment">
		<div class="msg-title">	
            <div class="msg-tools c-666"><?= Util::formatTime($row['add_time'])?></div>
            <?if($row['app']=='bet'):?>
            <?$resinfo = sms_util_comment::getResourceInfo($row['classname'],$row['rid'],$row['app'],$row['control'],$row['act'],$row['authorid']);?>
            <div class="msg-time  msg-comment-time"><a href="/?uid=<?=$row['uid']?>" class="username"><?= $user_name?></a>对竞猜 <a href="<?=self::_makeURL($row['app'],$row['control'],$row['act'],array('id'=>$row['rid']))?>" target="_blank"><script>comments.breakWord("<?=$resinfo['title']?>",28);</script> </a>发表评论：</div>
            <?else:?>
            <div class="msg-time  msg-comment-time"><a href="/?uid=<?=$row['uid']?>" class="username"><?= $user_name?></a>对我的<?=$row['typename']?>发表评论：</div>
            <?endif;?>	
		</div>
		<div class="msg-content">		
			<? sms_util_comment::echoResourceHtml($row['classname'],$row['rid'],$row['app'],$row['control'],$row['act'],$row['authorid']);?>
            <div class="msg-content-right">
               <div class= "msg-content-right-icon-triangle"></div><!--msg-content-right-icon-triangl-->
                   <div class="msg-content-right-comment">
                      <div class="msg-content-right-comment-text">
                          <script>
							UBBCode.output("<?= sms_util_text::formatOutputContent($row['content'])?>");
						  </script> 
                       </div>
                       <?if($row['recoment']):?>                       
                         <?foreach($row['recoment'] as $recom):?>
                         	<? include('part_comm_reply_row.phtml');?>
						<?endforeach;?>	                       
                        <?endif;?>
                        <div class="a-r-bottom">
                        <a href="javascript:;" onclick="comments.del_comment('<?=$row['thread_id']?>')">删除</a>
                        <span class="spacing-line">|</span>
                        <a href="javascript:;" onclick="comments.show_reply('reply_<?=$row['thread_id']?>')">回复</a> 	
                        </div>
						<? include('recomment_edit.phtml');?>
                  </div><!--msg-content-right-comment-->
               </div><!--msg-content-right-->
             </div><!--msg-content-->
		</div><!--msg-main msg-main-comment-->
	</div><!--mymsg-->